{include file="public/head"/}
  
  <body>
    <div class="x-body">
        <form class="layui-form" action="{:url('admin/Parking/parkingUpdate')}" method="post" enctype="multipart/form-data">
            <input type="hidden" name="id"  value="{$info.id}" />
            <input type="hidden" name="parking_id"  value="{$info.parking_id}" />
            <input type="hidden" name="pay_type"  value="{$info.pay_type}" />
            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>所属区域:
                </label>
                <div class="layui-input-inline" style="width: 300px;">
                    <select name="community_id">
                        <option value=""><------选择区域------></option>
                        {foreach $communitylist as $pro}
                        <option value="{$pro.id}" {if $info.community_id == $pro.id} selected="selected" {/if}>{$pro.name}</option>
                        {/foreach}
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>停车场名称:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="parking_name" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.parking_name}">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>停车场地址:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="parking_address" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.parking_address}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"><span class="x-red">*</span>停车场类型</label>
                <div class="layui-input-block">
                    <input type="radio" lay-skin="primary" value="1" title="居民小区" name="parking_lot_type" {if $info.parking_lot_type == '1'} checked="" {/if}>
                    <input type="radio" lay-skin="primary" value="2" title="商圈" name="parking_lot_type" {if $info.parking_lot_type == '2'} checked="" {/if}>
                    <input type="radio" lay-skin="primary" value="3" title="路侧" name="parking_lot_type" {if $info.parking_lot_type == '3'} checked="" {/if}>
                    <input type="radio" lay-skin="primary" value="4" title="公园景点" name="parking_lot_type" {if $info.parking_lot_type == '4'} checked="" {/if}>
                    <input type="radio" lay-skin="primary" value="5" title="商务楼宇" name="parking_lot_type" {if $info.parking_lot_type == '5'} checked="" {/if}>
                    <input type="radio" lay-skin="primary" value="6" title="其他" name="parking_lot_type" {if $info.parking_lot_type == '6'} checked="" {/if}>
                    <input type="radio" lay-skin="primary" value="7" title="交通枢纽" name="parking_lot_type" {if $info.parking_lot_type == '7'} checked="" {/if}>
                    <input type="radio" lay-skin="primary" value="8" title="市政设施" name="parking_lot_type" {if $info.parking_lot_type == '8'} checked="" {/if}>
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>高德地图标识:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="parking_poiid" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.parking_poiid}">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>客服电话:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="parking_mobile" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.parking_mobile}">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>收费说明:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="parking_fee_description" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.parking_fee_description}">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="username" class="layui-form-label">
                    <span class="x-red">*</span>超时时间:
                </label>
                <div class="layui-input-inline">
                    <input type="text" id="username" name="time_out" required="" lay-verify="required"
                    autocomplete="off" class="layui-input"  style="width: 300px;" value="{$info.time_out}">
                </div>
            </div>

            <div class="layui-form-item">
                <label for="L_repass" class="layui-form-label">
                </label>
                <button  class="layui-btn" lay-filter="add" lay-submit="">
                    修改停车场
                </button>
            </div>
        </form>
    </div>
    <script>var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();</script>
  </body>

</html>